<section class="header">

  <!--左边部分-->
  <div class="header-left" *ngIf="!!leftRef;else elseLeft">
    <ng-container [ngTemplateOutlet]="leftRef"></ng-container>
  </div>
  <ng-template #elseLeft>
    <div class="header-left" (click)="back()">
      返回
    </div>
  </ng-template>

  <!--右边部分-->
  <div class="header-right" *ngIf="!!rightRef">
    <ng-container [ngTemplateOutlet]="rightRef"></ng-container>
  </div>

  <!--中间部分-->
  <div class="header-center" *ngIf="!!centerRef;else elseBlock">
    <ng-container [ngTemplateOutlet]="centerRef"></ng-container>
  </div>
  <ng-template #elseBlock>
    <div class="header-center">{{title}}</div>
  </ng-template>
</section>
